import request from '@/utils/request'

const analysisApi = {
  analysis: '/api/statistics/Get_KB_BZQKFX',
  direction: '/api/statistics/Get_KB_SQQKZX',
  guarantee: '/api/statistics/Get_KB_BZFSFX',
  proportionTypes: '/api/statistics/Get_KB_RYJGFX',
  occupancyStatus: '/api/statistics/Get_KB_GZFRZQK',
  distributionStatus: '/api/statistics/Get_KB_BTFFQK'
}

export function getSituationAnalysis (parameter) {
  return request({
    url: analysisApi.analysis,
    method: 'get',
    params: parameter
  })
}

export function getSituationDirection (parameter) {
  return request({
    url: analysisApi.direction,
    method: 'get',
    params: parameter
  })
}

export function getSituationGuarantee (parameter) {
  return request({
    url: analysisApi.guarantee,
    method: 'get',
    params: parameter
  })
}

export function getProportionTypes (parameter) {
  return request({
    url: analysisApi.proportionTypes,
    method: 'get',
    params: parameter
  })
}

export function getOccupancyStatus (parameter) {
  return request({
    url: analysisApi.occupancyStatus,
    method: 'get',
    params: parameter
  })
}

export function getDistributionStatus (parameter) {
  return request({
    url: analysisApi.distributionStatus,
    method: 'get',
    params: parameter
  })
}
